<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>{:sysconf('site_name')}</title>
    <meta name="keywords" content="{:sysconf('site_name')}">
    <meta name="description" content="{:sysconf('site_name')}">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <link rel="shortcut icon" href="/favicon.ico">
    <link href="__STATIC__/admin/bootstrap/css/bootstrap.min.css?v=3.3.7" rel="stylesheet">
    <link href="__STATIC__/admin/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
    <link href="__STATIC__/admin/css/style.css?v=4.1.0" rel="stylesheet">

    <link href="__STATIC__/admin/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="__STATIC__/admin/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    <link href="__STATIC__/admin/plugins/bootstrap-editable/bootstrap-editable.css" rel="stylesheet">

    <link href="__STATIC__/admin/css/common.css" rel="stylesheet">
    {block name="style"}{/block}
</head>
{block name="bodyTag"}
<body class="fixed-sidebar full-height-layout">
    <div class="row ">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                {if isset($title)}
                <div class="ibox-title">
                    <h5>{$title}</h5>
                </div>
                {/if}
                <div class="ibox-content">
                    {if isset($alert)}
                    <div class="alert alert-{$alert.type} alert-dismissible" role="alert" style="border-radius:0">
                        <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                            <span aria-hidden="true">&times;</span>
                        </button>
                        {if isset($alert['title'])}<p style="font-size:18px;padding-bottom:10px">{$alert.title}</p>{/if}
                        {if isset($alert['content'])}<p style="font-size:14px">{$alert.content}</p>{/if}
                    </div>
                    {/if}
                    {block name="search"}{/block}
                    {block name="button"}{/block}
                    {block name="content"}{/block}
                </div>
            </div>
        </div>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/admin/js/jquery.min.js?v=2.1.4"></script>

    <script src="__STATIC__/admin/bootstrap/js/bootstrap.min.js?v=3.3.7"></script>
    <script src="__STATIC__/admin/plugins/metisMenu/jquery.metisMenu.js"></script>
    <script src="__STATIC__/admin/plugins/slimscroll/jquery.slimscroll.min.js"></script>
    <!-- jQuery Validation plugin javascript-->
    <script src="__STATIC__/admin/plugins/validate/jquery.validate.min.js"></script>
    <script src="__STATIC__/admin/plugins/validate/messages_zh.min.js"></script>
    <script src="__STATIC__/admin/plugins/validate/form-validate-com.js"></script>
    <script src="__STATIC__/admin/plugins/layer/layer.min.js"></script>

    <!-- 自定义js -->
    <script src="__STATIC__/admin/js/jquery.common.js"></script>
    <!--<script src="__STATIC__/admin/js/hplus.js?v=4.1.0"></script>-->
    <!--<script type="text/javascript" src="__STATIC__/admin/js/contabs.js"></script>-->
    <!-- 第三方插件 -->
    <!--<script src="__STATIC__/admin/plugins/ueditor/ueditor.config.js"></script>-->
    <!--<script src="__STATIC__/admin/plugins/ueditor/ueditor.all.js"></script>-->
    <!--<script id="uploadue" type="text/plain"></script>-->

    <script src="__STATIC__/admin/plugins/ckeditor/ckeditor.js"></script>
    <script src="__STATIC__/admin/plugins/ckeditor/styles.js"></script>
    <script src="__STATIC__/admin/plugins/ckeditor/config.js"></script>


    <script src="__STATIC__/admin/plugins/iCheck/icheck.min.js"></script>
    <!-- Bootstrap table -->
    <script src="__STATIC__/admin/plugins/bootstrap-table/bootstrap-table.min.js"></script>
    <script src="__STATIC__/admin/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    <!-- Bootstrap edit-table -->
    <script src="__STATIC__/admin/plugins/bootstrap-editable/bootstrap-editable.js"></script>
    <script >
        //icheck
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
        });
        //uplaod
        var arr = ['file','uptype','type','field'];
        $('.toupload').click(function () {
            var data_attr = [];
            for( i in arr){
                data_attr.push($(this).attr('data-'+arr[i]));
            }
            layer.open({
                type: 2,
                title: '文件上传',
                shadeClose: true,
                shade: false,
                maxmin: true, //开启最大化最小化按钮
                area: ['893px', '600px'],
                content: "{:url('admin/plugs/upfile')}?mode="+data_attr[0]+"&uptype="+data_attr[1]+"&type="+data_attr[2]+"&field="+data_attr[3]
            });
        })
    </script>
    <!--<script src="__STATIC__/admin/js/plugins/pace/pace.min.js"></script>-->
    {block name="script"}{/block}
</body>
{/block}
</html>